#coding=utf-8
from stockdb.misc import *

rps = sess.query(RTPrice).all()

for rp in rps:
    s = rp.stock
    now = rp.now
    
    if now > 25:continue
    
    td = s.latest_td
    if not td.top(20):continue
    if now >= td.top(20)  :
        print s 
